<?php include "../api/GMap.php"?>
<html>
<head>
	<title>Deneb Google Map API Example</title>
	<?php
		// create a new GMap Object
		$map = new GMap();
		
		// Create the first Position Object with some 
		// example latitude and longitude
		$latLon1 = $map->addLatLon(42.745334, 12.738430);
		$map->addMarker($latLon1, "Marker 1");
		
		// Create the second Position Object with some
		// example latitude and longitude
		$latLon2 = $map->addLatLon(40.745334, 11.738430);
		$map->addMarker($latLon2, "Marker 2");
		
		// Create the third Position Object with some
		// example latitude and longitude
		$latLon3 = $map->addLatLon(38.745334, 10.738430);
		$map->addMarker($latLon3, "Marker 3");
		
		// Create the fourth Position Object with some
		// example latitude and longitude
		$latLon4 = $map->addLatLon(30.745334, 9.738430);
		$map->addMarker($latLon4, "Marker 4");
		
		// Load Google Map V3 Javascript with 
		// Zoom Level=15 and Centered on the second Position Object
		$map->load(15, $latLon2);
	?>
</head>
<body>
	<?php 
		// Show the map with desired width=600px and height=300px
		$map->show("600px", "300px"); 
	?>
</body>
</html>